<%@ page language="java" contentType="text/html; charset=UTF-8"	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ include file="/WEB-INF/jsp/sys/css.jsp"%>
<%@ include file="/WEB-INF/jsp/sys/uploader.jsp" %>
<%@page import="com.centit.util.RequestUtil" %>

<html lang="zh-cmn-Hans">
<head>
<title></title>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/modules/util/static/ztree/css/metroStyle/metroStyle.css">
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/modules/util/static/plugin/css/index.css">
<script type="text/javascript" src="${pageContext.request.contextPath}/modules/util/static/ztree/js/jquery.ztree.all.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/modules/util/static/plugin/js/selectTree.js"></script>
<script type="text/javascript"	src="${pageContext.request.contextPath}/modules/airplanebaseinfo/airplanebaseinfo/ctrl/airplanebaseinfo.edit.js"></script>
<style type="text/css">
.stream-main-upload-box {
        border: none;
    }

    .centit-uploader .uploaded-files li {
        padding: 10px 20px 10px 10px;
    }
</style>
</head>
<body>
	<form class="layui-form" action="" style="padding: 10px"
		lay-filter="azdbqryForm" id ="viewTble">
		<input type="hidden" name="recId" id="recId" value="${object.recId}">
		<table class="viewTable" id ="viewTable">
			<tr>
				<th >飞机状态</th>
				<td>
					<select name="airZt" class="layui-input" lay-filter="airZt" id="airZt"   value="${object.airZt}" >
								<option value="">--请选择--</option>
								<c:forEach items="${cp:DICTIONARY('AIRZT')}" var="row">
				         			<option value="${row.dataCode }" <c:if test="${object.airZt eq row.dataCode }">selected="selected"</c:if> >${row.dataValue }</option>
				   				</c:forEach>
					</select>
				</td>
				<th>飞机性质</th>
				<td>
					<select name="nature" class="layui-input" lay-filter="nature" id="nature"   value="${object.nature}" >
								<option value="">--请选择--</option>
								<c:forEach items="${cp:DICTIONARY('AIRXZ')}" var="row">
				         			<option value="${row.dataCode }" <c:if test="${object.nature eq row.dataCode }">selected="selected"</c:if> >${row.dataValue }</option>
				   				</c:forEach>
					</select>
				</td>
			</tr>
			<tr>
			<th>租赁到期日期</th>
				<td>
					<input type="text" name="endTime" id="endTime" class="layui-input" value="<fmt:formatDate value='${object.endTime}' pattern='yyyy-MM-dd'/>"  >
				</td>
				<th >国籍标志和登记标志</th>
				<td>
					<input type="text" name="sign" id="sign" class="layui-input"  value="${object.sign}" >
				</td>
			</tr>
			
			<tr>
			<th>航空器型号和制造人</th>
				<td>
					<input type="text" name="airModel" id="airModel" class="layui-input"  value="${object.airModel}" >
				</td>
				<th >航空器出厂序列号</th>
				<td>
					<input type="text" name="ccxlh" id="ccxlh" class="layui-input"  value="${object.ccxlh}" >
				</td>
			</tr>
			<tr>
				<th >出厂日期</th>
				<td>
					<input type="text" name="proctionDate" id="proctionDate" class="layui-input"  value="<fmt:formatDate value='${object.proctionDate}' pattern='yyyy-MM-dd'/>" >
				</td>
				<th >调机日期</th>
				<td>
					<input type="text" name="useDate" id="useDate" class="layui-input"   value="<fmt:formatDate value='${object.useDate}' pattern='yyyy-MM-dd'/>">
				</td>
			</tr>
			<tr>
				<th >注销日期</th>
				<td>
					<input type="text" name="offDate" id="offDate" class="layui-input"  value="<fmt:formatDate value='${object.offDate}' pattern='yyyy-MM-dd'/>">
				</td>
				<th >本证发给</th>
				<td>
				<input type="text" name="bzfj" id="bzfj" class="layui-input"   value="${object.bzfj}" >
				</td>
			</tr>
			<tr>
				<th >Engine serie</th>
				<td>
					<input type="text" name="engineS" id="engineS" class="layui-input"   value="${object.engineS}" >
				</td>
				<th >Engine</th>
				<td>
					<input type="text" name="engine" id="engine" class="layui-input"  value="${object.engine}" >
				</td>
			</tr>
			<tr>
				<th >1st engine SN（出厂序号）</th>
				<td>
					<input type="text" name="oneSn" id="oneSn" class="layui-input"   value="${object.oneSn}" >
				</td>
				<th >2nd engine SN（出厂序号）</th>
				<td>
					<input type="text" name="twoSn" id="twoSn" class="layui-input"  value="${object.twoSn}" >
				</td>
			</tr>
			<tr>
				<th >国籍登记证编号</th>
				<td>
				<input type="text" name="gjNo" id="gjNo" class="layui-input"   value="${object.gjNo}" >
				</td>
				<th >国籍登记证签发日期</th>
				<td>
					<input type="text" name="gjDate" id="gjDate" class="layui-input"   value="<fmt:formatDate value='${object.gjDate}' pattern='yyyy-MM-dd'/>">
				</td>
			</tr>
			<tr>
				<th >所有人名称</th>
				<td>
					<input type="text" name="haveName" id="haveName" class="layui-input"   value="${object.haveName}" >
				</td>
				<th >所有人地址</th>
				<td>
				<input type="text" name="haveAddr" id="haveAddr" class="layui-input"   value="${object.haveAddr}" >
				</td>
			</tr>
			<tr>
				<th >运营人</th>
				<td>
					<input type="text" name="yyName" id="yyName" class="layui-input"   value="${object.yyName}" >
				</td>
				<th >运营人地址</th>
				<td>
				<input type="text" name="yyAddr" id="yyAddr" class="layui-input"   value="${object.yyAddr}" >
				</td>
			</tr>
			<tr>
				<th >标准适航证编号</th>
				<td>
					<input type="text" name="shNo" id="shNo" class="layui-input"   value="${object.shNo}" >
				</td>
				<th >标准适航证签发日期</th>
				<td>
				<input type="text" name="qfDate" id="qfDate" class="layui-input"   value="<fmt:formatDate value='${object.qfDate}' pattern='yyyy-MM-dd'/>" >
				</td>
			</tr>
			<tr>
				<th >航空器地址编码（S模式）HEX</th>
				<td>
				<input type="text" name="addrNoHex" id="addrNoHex" class="layui-input"   value="${object.addrNoHex}" >
				</td>
				<th >航空器地址编码（S模式）OCT</th>
				<td>
				<input type="text" name="addrNoOct" id="addrNoOct" class="layui-input"   value="${object.addrNoOct}" >
				</td>
			</tr>
			<tr>
				<th >选择呼叫代码</th>
				<td>
					<input type="text" name="hjNo" id="hjNo" class="layui-input"   value="${object.hjNo}" >
				</td>
				<th >电台执照序号</th>
				<td>
					<input type="text" name="dtNo" id="dtNo" class="layui-input"   value="${object.dtNo}" >
				</td>
			</tr>
			<tr>
				<th >电台执照有效期限</th>
				<td>
				<input type="text" name="dtyxDate" id="dtyxDate" class="layui-input"   value="<fmt:formatDate value='${object.dtyxDate}' pattern='yyyy-MM-dd'/>">
				</td>
				<th >电台执照颁发日期</th>
				<td>
					<input type="text" name="dtbfDate" id="dtbfDate" class="layui-input"   value="<fmt:formatDate value='${object.dtbfDate}' pattern='yyyy-MM-dd'/>">
				</td>
			</tr>
			<tr>
				<th>电台证</th>
	                    <td colspan="3">
	                        <div class="layui-input-inline tdcontent" >
	                        <input type="hidden"  id="dtz" name="dtz"  value="${object.dtz}" />
	                        </div>
	                    </td>
			</tr>
			<tr>
				<th>适航证</th>
	                    <td colspan="3">
	                        <div class="layui-input-inline tdcontent" >
	                        <input type="hidden"  id="shz" name="shz"  value="${object.shz}" />
	                        </div>
	                    </td>
			</tr>
			<tr>
				<th>国籍证</th>
	                    <td colspan="3">
	                        <div class="layui-input-inline tdcontent" >
	                        <input type="hidden"  id="gjz" name="gjz"  value="${object.gjz}" />
	                        </div>
	                    </td>
			</tr>
			<tr>
				<th>飞机合同</th>
	                    <td colspan="3">
	                        <div class="layui-input-inline tdcontent" >
	                        <input type="hidden"  id="ht" name="ht"  value="${object.ht}" />
	                        </div>
	                    </td>
			</tr>
		</table>
		<div style="text-align: center; margin-top: 20px">
			<button class="layui-btn" lay-submit="" type="button" lay-filter="saveAir">保存</button>
			<button class="layui-btn layui-btn-primary" type="button" onclick="CloseWin()">关闭</button>
		</div>
	</form>
	<script>
var basePath= "${pageContext.request.contextPath}";
</script>

 <script type="text/javascript">
 window.UploaderPath='${cp:SYS_VALUE("uploaderpath")}/';
	index = setInterval(setUpload, '1000');
	function setUpload() {
	    try {
	    	  if (typeof $('#dtz', null).uploader === "function") { 
	              clearInterval(index);
	              $('#dtz', null).uploader({
	                  UploaderPath: window.UploaderPath,           
	                  ViewContextPath: window.UploaderPath,
	                  info: {
	                      optId: 'applyAdd'    
	                  }
	              });
	          } else {
	        	  
	          }
	      } catch (e) {
	      }
	      try {
	    	  if (typeof $('#shz', null).uploader === "function") { 
	              clearInterval(index);
	              $('#shz', null).uploader({
	                  UploaderPath: window.UploaderPath,           
	                  ViewContextPath: window.UploaderPath,
	                  info: {
	                      optId: 'applyAdd'    
	                  }
	              });
	          } else {
	        	  
	          }
	      } catch (e) {
	      }
	      try {
	    	  if (typeof $('#gjz', null).uploader === "function") { 
	              clearInterval(index);
	              $('#gjz', null).uploader({
	                  UploaderPath: window.UploaderPath,           
	                  ViewContextPath: window.UploaderPath,
	                  info: {
	                      optId: 'applyAdd'    
	                  }
	              });
	          } else {
	        	  
	          }
	      } catch (e) {
	      }
	      try {
	    	  if (typeof $('#ht', null).uploader === "function") { 
	              clearInterval(index);
	              $('#ht', null).uploader({
	                  UploaderPath: window.UploaderPath,           
	                  ViewContextPath: window.UploaderPath,
	                  info: {
	                      optId: 'applyAdd'    
	                  }
	              });
	          } else {
	        	  
	          }
	      } catch (e) {
	      }
	  }
 </script>
</body>
</html>
